package cn.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.mapper.SortMapper;
import cn.pojo.Sort;

@Service
@Transactional
public class SortServiceImpl implements SortService {
	@Resource
	private SortMapper sortMapper;

	@Override
	public List<Sort> getSort() {
		return sortMapper.getSort();
	}

	@Override
	public Sort getSortById(Long sortId) {
		return sortMapper.getSortById(sortId);
	}

}
